<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>添加用户</title>
</head>
<body>
<h3 style="text-align: center">修改用户</h3>
<hr/>
<div>
    <form th:action="@{/student/updateStu}" method="post">
              <input type="hidden" name="id" th:value="${student.id}">
        姓名：<input type="text" name="name" th:value="${student.name}"/><br/>
        年龄：<input type="text" name="age" th:value="${student.age}"/><br/>
        性别：<input type="radio" name="sex" value="1" th:checked="${student.sex=='1'}" />男<!--th:attr="checked=${student.sex=='1'?true:false}"-->
        <input type="radio" name="sex" value="2" th:checked="${student.sex=='2'}" />女<br/><!--th:attr="checked=${student.sex== '2'?true:false}"-->
        生日：<input type="date" name="birthday" dataformatas="yyyy-MM-dd" th:value="${#dates.format(student.birthday,'yyyy-MM-dd')}"/><br/>
        <input type="submit" value="确定"/><br/>
    </form>
</div>
</body>
</html>
